package eclipse.util.modeltools;
import javax.swing.*;
import eclipse.lib.graphics.primitives.GLPrimitiveObject;
import eclipse.util.*;
import eclipse.util.io.*;
public class ModelEditor extends JApplet
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static GLPrimitiveObject obj = new GLPrimitiveObject();
	public void init()
	{
		String file = JOptionPane.showInputDialog(null, "file as ERL");
		String args[] = new String[1];
		args[0] = file;
		main(args);
	}
	public static void main(String args[])
	{
		for(int i = 0; i < args.length; i++)
		{		
			PropertyFile pFile = new PropertyFile(new ERL(args[i]).openStream());
			System.out.println("loading file");				
			obj = new GLPrimitiveObject(pFile);
		}
		new ModelDisplay();
		//new ModelToolkit();
	}
	public static void addVerts(float x, float y, float z)
	{
		
	}
}
